package com.qidian.buy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.MutablePropertySources;
import org.springframework.core.env.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.Iterator;

/**
 * @author 戴着假发的程序员
 * @company 起点编程
 * @date 2023/9/6 10:54
 */
@SpringBootApplication
@MapperScan("com.qidian.buy.mapper")
@EnableDiscoveryClient
@EnableTransactionManagement
public class CMSApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext application = SpringApplication.run(CMSApplication.class, args);
        String indexMarks = application.getEnvironment().getProperty("indexMarks");
        System.out.println(indexMarks);
    }
}
